﻿using LxCore;

namespace LxCore
{
    public class MeshWithSelector : JsObject
    {
        public List<bool> MonitorSelector = new();
        public List<bool> GraphSelector = new();
        public bool IsMonitorSel
        {
            get => ConditionCenter.CurrentMonitor < MonitorSelector.Count ? MonitorSelector[ConditionCenter.CurrentMonitor] : false;
            set
            {
                MonitorSelector[ConditionCenter.CurrentMonitor] = value;
                RaisePropertyChanged(nameof(IsMonitorSel));
            }
        }

        public bool IsGraphSel
        {
            get => ConditionCenter.CurrentGraph < GraphSelector.Count ? GraphSelector[ConditionCenter.CurrentGraph] : false;
            set
            {
                GraphSelector[ConditionCenter.CurrentGraph] = value;
                RaisePropertyChanged(nameof(IsGraphSel));
            }
        }

    }
}
//protected static List<BoundTypes> SolidAllBoundTypes = new List<BoundTypes>()
//    {
//        BoundTypes.Wall
//    };
//protected static List<BoundTypes> FluidAllBoundTypes = new List<BoundTypes>()
//    {
//        BoundTypes.Wall,
//        BoundTypes.VelocityInlet,
//        BoundTypes.PressureInOut,
//        BoundTypes.Symmetry,
//    };
